﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface IRoutewayService
    {
        /// <summary>
        /// 添加巷道信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddRrouteway(Routeway obj, out string message);
        /// <summary>
        /// 删除巷道信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelRrouteway(long id);
        /// <summary>
        /// 修改巷道信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool UpdRrouteway(Routeway obj, out string message);

        /// <summary>
        /// 显示巷道信息
        /// </summary>
        /// <param name="xname"></param>
        /// <param name="wid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<Routeway> GetRroutewayList(string? xname, long wid, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Routeway? GetRroutewayById(long id);

        /// <summary>
        /// 根据库房获取巷道
        /// </summary>
        /// <param name="wid"></param>
        /// <returns></returns>
        List<Routeway> GetWhIdRoutewayList(long wid);

        /// <summary>
        /// 根据货架拿到所属巷道
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int? GetShelfRoutewayId(long id);
    }
}
